package com.xcc.factorypattern.demo03;

/**
 * @Description: CaliforniaPizzaStore
 * @Author xiechuang
 * @Date 2022/9/3
 */
public class CaliforniaPizzaStore extends PizzaStore {

    @Override
    Pizza createPizza(String item) {
        if ("cheese".equals(item)) {
            return new CaliforniaStyleCheesePizza();
        } else if ("pepperoni".equals(item)) {
            return new CaliforniaStylePepperoniPizza();
        } else if ("clam".equals(item)) {
            return new CaliforniaStyleClamPizza();
        } else if ("veggie".equals(item)){
            return new CaliforniaStyleVeggiePizza();
        }
        return null;
    }

}
